package demo02_scan;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created by ztt on 2017/9/14.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes= MyConfig1_default.class)
public class JavaMain {

    @Autowired MyBean myBean;

    @Test
    public void run(){
        myBean.run();
    }
}
